let sym = Symbol("test");

let obj = {
    [sym]: "test"
}

console.log(Object.getOwnPropertySymbols(obj));